-- GENERATED SPELL FOR [Fhwoor] --


function spell0_17877(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(31277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17877', 522, 1)
end

function spell1_17877(pUnit, Event) --@Thundershock,n/a--
pUnit:FullCastSpellOnTarget(31964,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17877', 5308, 1)
end

function Sorts_17877(pUnit, Event)
local choix_sorts_17877 = math.random(0, 1)
if choix_sorts_17877 == 0 then
pUnit:RegisterEvent('spell0_17877', 1, 1)
end
if choix_sorts_17877 == 1 then
pUnit:RegisterEvent('spell1_17877', 1, 1)
end
end

function mob17877_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17877', math.random(1500, 3000), 1)
end

function mob17877_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17877_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17877_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17877, 1, 'mob17877_Action')
RegisterUnitEvent(17877, 2, 'mob17877_Leave')
RegisterUnitEvent(17877, 3, 'mob17877_Kill')
RegisterUnitEvent(17877, 4, 'mob17877_Die')
